#include "mainwindow.h"

#include "ast.h"

#include <QtGui/QApplication>

extern AstCodeBlock* compile(const char* fileName);

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    MainWindow::getInstance()->show();

    return app.exec();
    /*
    std::string file = "c:/cpnscript/test.cpnscript";
    AstCodeBlock* program = compile(file.c_str());

    if (program != 0)
    {
        const std::list<AstStatement*> statements = program->statements();
        for (std::list<AstStatement*>::const_iterator it = statements.begin();
             it != statements.end(); ++it)
        {
            AstStatement* statement = *it;
            AstNodeType nType = statement->nodeType();
            std::string value = statement->stringValue();

            bool b = true;
            b = !b;
        }
    }

    return 0;*/
}
